SSR component API

Posted on 2023-07-10 by

henrikvilhelmberglund

In the last post we learned about the client side component API but today we're talking about SSR component API.

We can do Component.render() and get our HTML code, CSS and head.

I can't really showcase this in this page because I'm using SSR (server side rendering) for the initial HTML and then CSR (client side rendering) for the client side interactivity.

I made a new page with CSR disabled that will show how the output of render() looks: (may need to refresh after navigating to the page)

SSR component API